home *** CD-ROM | disk | FTP | other *** search
/ Young Minds / Young Minds Interactive CD-ROM.ISO / crystal / cvocab.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-01-12  |  9.3 KB  |  485 lines

  1. /* cvocab.c
  2.  *    the crystal cave vocabulary
  3.  ************************************************************************/
  4.  
  5. #include "cvocab.h"
  6.  
  7. /*************************************************************************
  8.  * action defaults:
  9.  *    each line contains the message number of the default error
  10.  *    message for one of the action verbs.
  11.  *************************************************************************/
  12. int actspk[] = {
  13.     0,
  14.     24,    /* carry */
  15.     29,    /* drop */
  16.     38,    /* on */
  17.     38,    /* off */
  18.     28,    /* open */
  19.     28,    /* lock */
  20.     0,    /* say */
  21.     75,    /* rub */
  22.     59,    /* find */
  23.     59,    /* inventory */
  24.     13,    /* quit */
  25.     13,    /* score */
  26.     0,    /* nothing */
  27.     13,    /* suspend */
  28.     155,    /* brief */
  29.     13,    /* hours */
  30.     29,    /* throw */
  31.     43,    /* go */
  32.     8,    /* pay */
  33.     146,    /* break */
  34.     110,    /* drink */
  35.     110,    /* eat */
  36.     195,    /* read */
  37.     12,    /* tie */
  38.     147,    /* untie */
  39.     174,    /* feed */
  40.     29,    /* pour */
  41.     110,    /* kill/attack */
  42.     110,    /* rig */
  43.     207,    /* cut */
  44.     109,    /* fill */
  45.     38,    /* test */
  46.     67,    /* blast */
  47.     42,    /* wave */
  48.     191,    /* sit */
  49.     14,    /* calm */
  50.     14,    /* fly */
  51.     110,    /* wake */
  52.     0,    /* describe */
  53.     0,    /* touch */
  54.     221,    /* play */
  55.     0,    /* restore */
  56.     13};    /* help */
  57.  
  58. /*************************************************************************
  59.  * vocabulary:
  60.  *    each entry contains a code and a word.  The codes in uppercase
  61.  *    are defined in cvocab.h, and are used in common with other
  62.  *    parts of the program.  The thousands-position of the code
  63.  *    indicates what "part of speech" we have here:
  64.  *    0:    the word is a motion verb or location reference for
  65.  *        use in travelling.  See cvlocs.c.
  66.  *    1:    the word is an object.
  67.  *    2:    the word is an action verb (such as "carry", "attack")
  68.  *    3:    the word is a special case verb (such as "dig") and
  69.  *        the low-order part of the code is an index into the
  70.  *        message array.  These words may duplicate objects.
  71.  *************************************************************************/
  72. struct cvocab vtab [] = {
  73. {NORTH,    "north"},
  74. {NORTH,    "n"},
  75. {NE,    "northeast"},
  76. {NE,    "ne"},
  77. {EAST,    "east"},
  78. {EAST,    "e"},
  79. {SE,    "southeast"},
  80. {SE,    "se"},
  81. {SOUTH,    "south"},
  82. {SOUTH,    "s"},
  83. {SW,    "southwest"},
  84. {SW,    "sw"},
  85. {WEST,    "west"},
  86. {WEST,    "w"},
  87. {NW,    "northwest"},
  88. {NW,    "nw"},
  89. {UP,    "up"},
  90. {UP,    "upward"},
  91. {UP,    "u"},
  92. {UP,    "above"},
  93. {UP,    "ascend"},
  94. {DOWN,    "down"},
  95. {DOWN,    "downward"},
  96. {DOWN,    "d"},
  97. {DOWN,    "descend"},
  98. {OUT,    "out"},
  99. {OUT,    "outside"},
  100. {OUT,    "exit"},
  101. {OUT,    "leave"},
  102. {IN,    "in"},
  103. {ENTER,    "enter"},
  104. {JUMP,    "jump"},
  105. {BARN,    "barn"},
  106. {BARN,    "building"},
  107. {PRIVY,    "privy"},
  108. {PRIVY,    "outhouse"},
  109. {SHAFT,    "shaft"},
  110. {SINKH,    "sink"},
  111. {SINKH,    "sinkhole"},
  112. {PIGPE,    "pig"},
  113. {PIGPE,    "pigs"},
  114. {PIGPE,    "pigpen"},
  115. {BLUFF,    "bluff"},
  116. {HEADQ,    "park"},
  117. {HEADQ,    "headquarters"},
  118. {M_GATE,    "gate"},    /* also appears as an object word as a rnager
  119.                 synonym 1060 */
  120. {M_GATE,    "mouth"},
  121. {M_GATE,    "entrance"},
  122. {LAKE,    "lake"},
  123. {LAKE,    "rapids"},
  124. {FIELD,    "field"},
  125. {FIELD,    "pasture"},
  126. {FIELD,    "meadow"},
  127. {BACK,    "back"},
  128. {BACK,    "return"},
  129. {BACK,    "retreat"},
  130. {WAIT,    "null"},
  131. {WAIT,    "wait"},
  132. {WAIT,    "nowhere"},
  133. {CROSS,    "cross"},
  134. {HOPE,    "hope"},
  135. {UPSTR,    "upstream"},
  136. {DOWNS,    "downstream"},
  137. {CLIMB,    "climb"},
  138. {CLIMB,    "scale"},
  139. {PATH,    "path"},
  140. {PAST,    "p"},
  141. {PAST,    "past"},
  142. {FUTUR,    "f"},
  143. {FUTUR,    "future"},
  144. {BANIS,    "banish"},
  145. {MISFO,    "misfortune"},
  146.  
  147. /* start of object section */
  148.  
  149. {1001,    "diamonds"},
  150. {1002,    "silver"},
  151. {1002,    "sack"},
  152. {_JEWLRY,    "jewelry"},
  153. {1004,    "coins"},
  154. {_CHEST,    "chest"},
  155. {_CHEST,    "box"},
  156. {_CHEST,    "treasure"},
  157. {_CAPE,    "ermine"},
  158. {_CAPE,    "cape"},
  159. {_CAPE,    "cloak"},
  160. {_CROWN,    "crown"},
  161. {_SCEPT,    "scepter"},
  162. {1009,    "sapphire"},
  163. {_ORB,    "platinum"},
  164. {_ORB,    "orb"},
  165. {_IDOL,    "jade"},
  166. {_IDOL,    "idol"},
  167. {_RUG,    "rug"},
  168. {_RUG,    "persian"},
  169. {_RUG,    "carpet"},
  170. {_UNICRN,    "unicorn"},    /* also as special verb, 3226 */
  171. {_UNICRN,    "collar"},    /* also as special verb, 3226 */
  172. {_CHAIN,    "chain"},
  173. {_RING,    "ring"},
  174. {_RING,    "adamant"},
  175. {_HELM,    "helm"},
  176. {_HELM,    "helmet"},
  177. {_HELM,    "mithril"},
  178. {1017,    "gold"},
  179. {1017,    "nugget"},
  180. {_THRONE,    "throne"},
  181. {_THRONE,    "seat"},
  182. {_THRONE,    "chair"},
  183. {_SWORD,    "sword"},
  184. {_HAMMER,    "hammer"},
  185. {_CUP,    "cup"},
  186. {_MEDAL,    "ruby"},
  187. {_MEDAL,    "medallion"},
  188. {_SCROLL,    "parchment"},    /* also so special verb, 3126 */
  189. {_SCROLL,    "scroll"},    /* also as special verb, 3126 */
  190. {_HARP,    "harp"},
  191. {_HARP,    "ivory"},
  192. {_STONE,    "arkenstone"},
  193. {_STONE,    "stone"},
  194. {_KEG,    "keg"},
  195. {_KEG,    "beer"},
  196. {1027,    "long"},
  197. {1027,    "longsword"},
  198. {1028,    "broad"},
  199. {1028,    "broadsword"},
  200. {1029,    "spear"},
  201. {1030,    "short"},
  202. {1030,    "shortsword"},
  203. {1031,    "bow"},
  204. {1032,    "dagger"},
  205. {1033,    "quarterstaff"},
  206. {1033,    "staff"},
  207. {1034,    "halberd"},
  208. {1035,    "armor"},
  209. {1035,    "armour"},
  210. {1036,    "heater"},
  211. {1037,    "round shield"},
  212. {1038,    "tall"},
  213. {1039,    "cuirass"},
  214. {_COLUMN,    "column"},
  215. {1041,    "pearls"},
  216. {1042,    "helictites"},
  217. {1043,    "gypsum"},
  218. {1043,    "flowers"},
  219. {1044,    "bat"},
  220. {1044,    "bats"},
  221. {1046,    "crystal"},
  222. {1046,    "butterfly"},
  223. {1046,    "butterflies"},
  224. {1046,    "soda-straws"},
  225. {1046,    "soda"},
  226. {1046,    "sodastraws"},
  227. {1046,    "straw"},
  228. {1046,    "straws"},
  229. {1046,    "stalactites"},
  230. {1047,    "indian"},
  231. {1047,    "pot"},
  232.  
  233. {_COMPASS,    "compass"},
  234. {_KEY,    "key"},
  235. {_KEY,    "keys"},
  236. {_LAMP,    "lamp"},
  237. {_LAMP,    "headlamp"},
  238. {_RICK,    "rick"},    /* the ranger? */
  239. {_SEARS,    "sears"},
  240. {_SEARS,    "catalog"},
  241. {_WALLET,    "change"},
  242. {_WALLET,    "wallet"},
  243. {_DOOR,    "door"},
  244. {_BRIDGE,    "bridge"},
  245. {_BOAT,    "boat"},
  246. {_DAM,    "rimstone"},
  247. {_DAM,    "dam"},
  248. {_O_GATE,    "gate"},    /* name of location -- only available to
  249.             program -- see word 23 */
  250. {_O_GATE,    "ranger"},
  251. {_ROPE,    "rope"},    /* objects 61 to 64 are various rope parts */
  252. {_ROPE, "knot"},
  253.  
  254. {1065,    "guano"},
  255.  
  256. {_SPICE,    "spices"},
  257. {_KNIFE,    "knife"},
  258. {_KNIFE,    "knives"},
  259. {_FOOD,    "food"},
  260. {_FOOD,    "rations"},
  261. {_BOTTLE,    "bottle"},
  262. {_BOTTLE,    "jar"},
  263. {_WATER,    "water"},
  264. {_WATER,    "h2o"},
  265. {_WINE,    "wine"},
  266. {_COLA,    "coke"},
  267. {_COLA,    "cola"},
  268. {_COLA,    "orca"},
  269. {_MIRROR,    "mirror"},
  270. {_GIANT,    "priest"},
  271. {_GIANT,    "giant"},
  272. {_GIANT,    "orc"},
  273. {_ORCS,    "orcs"},
  274. {_TOMB,    "tomb"},
  275. {_TOMB,    "figure"},
  276. {_AXE,    "axe"},
  277. {_TOAD,    "toad"},
  278. {_SAND,    "sand"},
  279. {_SAND,    "turquoise"},
  280. {_SHELF,    "shelf"},
  281. {_HANG,    "hangings"},
  282. {_HANG,    "silk"},
  283.  
  284. {_CRAP,    "droppings"},
  285. {_CRAP,    "shit"},
  286. {_CRAP,    "crap"},
  287. {_CRAP,    "poo"},
  288. {_SHOWER,    "shower"},
  289. {_VEND,    "machine"},
  290. {_VEND,    "vending"},
  291. {_BATTER,    "batteries"},
  292. {_DWARF,    "dwarf"},
  293. {_DWARF,    "dwarves"},
  294. {_BEAR,    "bear"},    /* also action word 3095 */
  295. {_BEAR,    "bugbear"},    /* also action word 3095 */
  296. {_BEAR,    "bug"},        /* also action word 3095 */
  297. {_SKELTN,    "skeleton"},
  298. {_SPIDER,    "spider"},
  299. {_SPIDER,    "grendl"},
  300. {_DRAGON,    "dragon"},
  301. {_DJINN,    "djinni"},    /* also action word 3193 */
  302. {_KOBOLD,    "cobol"},    /* also action word 3194 */
  303. {_KOBOLD,    "kobold"},    /* also action word 3194 */
  304. {_BALROG,    "balrog"},    /* also action word 3160 */
  305. {_SELF,    "*you*"},
  306. {_SELF,    "*yourself*"},
  307. {_SELF,    "self"},
  308. {_SELF,    "me"},
  309.  
  310. /* verb section */
  311.  
  312. {TAKE,    "carry"},
  313. {TAKE,    "take"},
  314. {TAKE,    "keep"},
  315. {TAKE,    "catch"},
  316. {TAKE,    "steal"},
  317. {TAKE,    "capture"},
  318. {TAKE,    "get"},
  319. {TAKE,    "tote"},
  320. {DROP,    "drop"},
  321. {DROP,    "release"},
  322. {DROP,    "free"},
  323. {DROP,    "discard"},
  324. {DROP,    "dump"},
  325. {DROP,    "offer"},
  326. {DROP,    "abandon"},
  327. {ON,    "light"},
  328. {ON,    "on"},
  329. {OFF,    "off"},
  330. {OFF,    "extinguish"},
  331. {UNLOC,    "open"},
  332. {UNLOC,    "unlock"},
  333. {LOCK,    "close"},
  334. {LOCK,    "lock"},
  335. {SAY,    "say"},
  336. {SAY,    "chant"},
  337. {SAY,    "sing"},
  338. {SAY,    "utter"},
  339. {SAY,    "mumble"},
  340. {RUB,    "rub"},
  341. {FIND,    "find"},
  342. {INVENT,    "inventory"},
  343. {QUIT,    "quit"},
  344. {QUIT,    "qui"},
  345. {QUIT,    "qu"},
  346. {QUIT,    "q"},
  347. {SCORE,    "score"},
  348. {NOTHI,    "nothing"},
  349. {SAVE,    "save"},
  350. {BRIEF,    "brief"},
  351. {THROW,    "throw"},
  352. {THROW,    "toss"},
  353. {THROW,    "fling"},
  354. {WALK,    "walk"},
  355. {WALK,    "run"},
  356. {WALK,    "travel"},
  357. {WALK,    "go"},
  358. {WALK,    "proceed"},
  359. {WALK,    "continue"},
  360. {WALK,    "explore"},
  361. {WALK,    "goto"},
  362. {WALK,    "follow"},
  363. {WALK,    "turn"},
  364. {PAY,    "pay"},
  365. {BREAK,    "break"},
  366. {BREAK,    "smash"},
  367. {BREAK,    "destroy"},
  368. {DRINK,    "drink"},
  369. {EAT,    "eat"},
  370. {READ,    "read"},
  371. {TIE,    "tie"},
  372. {UNTIE,    "untie"},
  373. {FEED,    "feed"},
  374. {POUR,    "pour"},
  375. {KILL,    "kill"},
  376. {KILL,    "fight"},
  377. {KILL,    "hit"},
  378. {KILL,    "strike"},
  379. {KILL,    "attack"},
  380. {RIG,    "rig"},
  381. {RIG,    "anchor"},
  382. {CUT,    "cut"},
  383. {CUT,    "divide"},
  384. {FILL,    "fill"},
  385. {TEST,    "test"},
  386. {BLAST,    "blast"},
  387. {WAVE,    "wave"},
  388. {WAVE,    "shake"},
  389. {WAVE,    "swing"},
  390. {SIT,    "sit"},
  391. {CALM,    "calm"},
  392. {CALM,    "placate"},
  393. {CALM,    "tame"},
  394. {FLY,    "fly"},
  395. {FLY,    "rise"},
  396. {WAKE,    "wake"},
  397. {WAKE,    "disturb"},
  398. {DESCRB,    "look"},
  399. {DESCRB,    "examine"},
  400. {DESCRB,    "describe"},
  401. {TOUCH,    "touch"},
  402. {PLAY,    "play"},
  403. {PLAY,    "strum"},
  404. {PLAY,    "finger"},
  405. {PLAY,    "tune"},
  406. {RESTOR,    "restore"},
  407. {RESTOR,    "resume"},
  408. {HELP,    "help"},
  409. {HELP,    "?"},
  410.  
  411. /* special action words */
  412.  
  413. {3010,    "left"},
  414. {3010,    "right"},
  415. {3010,    "forward"},
  416. {3010,    "backward"},
  417.  
  418. {3050,    "fee"},
  419. {3050,    "fie"},
  420. {3050,    "foe"},
  421. {3050,    "foo"},
  422. {3050,    "fum"},
  423. {3050,    "xyzzy"},
  424. {3050,    "plugh"},
  425. {3050,    "sesame"},
  426. {3050,    "opensesame"},
  427. {3050,    "abra"},
  428. {3050,    "abracadabra"},
  429. {3050,    "shazam"},
  430. {3050,    "hocus"},
  431. {3050,    "pocus"},
  432.  
  433. {3064,    "tree"},
  434. {3064,    "trees"},
  435. {3064,    "wood"},
  436. {3064,    "woods"},
  437. {3064,    "forest"},
  438.  
  439. {3066,    "dig"},
  440. {3066,    "excavate"},
  441. {3068,    "lost"},
  442.  
  443. {3069,    "mist"},
  444.  
  445. {3095,    "bugbear"},    /* also object 1091 */
  446. {3095,    "bug"},        /* also object 1091 */
  447. {3095,    "bear"},    /* also object 1091 */
  448.  
  449. {3123,    "time"},
  450. {3123,    "timemaze"},
  451.  
  452. {3126,    "parchment"},    /* also object 1023 */
  453. {3126,    "scroll"},    /* also object 1023 */
  454.  
  455. {3139,    "stop"},
  456.  
  457. {3142,    "info"},
  458. {3142,    "information"},
  459.  
  460. {3147,    "swim"},
  461.  
  462. {3152,    "y"},
  463. {3152,    "yes"},
  464. {3152,    "ye"},
  465. {3152,    "no"},
  466. {3152,    "okay"},
  467. {3152,    "ok"},
  468.  
  469. {3160,    "balrog"},    /* also object 1097 */
  470.  
  471. {3190,    "siege"},
  472. {3190,    "perilous"},
  473.  
  474. {3193,    "djinni"},    /* also object 1095 */
  475. {3194,    "kobold"},    /* also object 1096 */
  476. {3194,    "cobol"},    /* also object 1096 */
  477.  
  478. {3225,    "fuck"},
  479.  
  480. {3226,    "unicorn"},    /* also object 1013 */
  481.  
  482.  
  483. {0}                    /************* mark the end ***************/
  484. };
  485.